<div th:fragment="biandong_edit">
<div id="biandongModal" style="" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-keyboard="false">
    <div class="modal-dialog modal-md" style="width:1000px;" id="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel"></h4>
            </div>
            <div class="modal-body" style="overflow: auto;" id="myModalBody">

                <form class="form-horizontal m" id="form-zhuanjiabiandongdetail-edit" th:object="${zhuanjiaBiandongDetail}">
                    <div class="form-group" v-if="isqushishow">
                        <label class="col-sm-3 control-label">专家：</label>
                        <div class="col-sm-8">
                            <select v-model="biandong.zhuanjiaid" name="zhuanjiaid" class="form-control" disabled>
                                <option v-for="zhuanjiaitem in zhuanjialist" :value="zhuanjiaitem.zhuanjiaid" v-text="zhuanjiaitem.xingming"></option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group" v-else>
                        <label class="col-sm-3 control-label">专家：</label>
                        <div class="col-sm-4">
                            <select v-model="biandong.zhuanjiaid" name="zhuanjiaid" class="form-control">
                                <option v-for="zhuanjiaitem in zhuanjialist" :value="zhuanjiaitem.zhuanjiaid" v-text="zhuanjiaitem.xingming"></option>
                            </select>
                        </div>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" v-model="zhuanjianame" placeholder="请输入专家姓名">
                        </div>
                        <div class="col-sm-1">
                            <button type="button" class="btn btn-primary" @click="bindZhuanjiaList">搜索</button>
                        </div>
                    </div>
                    <div id="biandongleixing_div" class="form-group">
                        <label class="col-sm-3 control-label">变动类型：</label>
                        <div class="col-sm-8">
                            <select name="biandongleixing" th:with="type=${@dict.getType('sys_zhuanjiazhuangtai')}" v-model="biandong.biandongleixing" class="form-control" type="text">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                            </select>
                        </div>
                    </div>
                    <div id="biandongriqi_div" class="form-group">
                        <label class="col-sm-3 control-label">变动日期：</label>
                        <div class="col-sm-8">
                            <div class="input-group date">
                                <input name="biandongriqi" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.biandongriqi" id="biandongriqi" @blur="getDate">
                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                            </div>
                        </div>
                    </div>
                    <!--<div id="zhuanzidanwei_div" class="form-group">
                        <label class="col-sm-3 control-label">转自单位：</label>
                        <div class="col-sm-4">
                            <select name="zhuanzidanwei" class="form-control" v-model="biandong.zhuanzidanwei" id="zhuanzidanwei">
                                <option v-for="deptitem in zhuanzidanweilist" :value="deptitem.id" v-html="deptitem.jigoumingcheng"></option>
                            </select>
                        </div>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" v-model="zhuanzidanweiname" placeholder="请输入转自单位名称">
                        </div>
                        <div class="col-sm-1">
                            <button type="button" class="btn btn-primary" @click="bindZhuanzidanweiList">搜索</button>
                        </div>
                    </div>-->
                    <div id="zhuanzhidanwei_div" class="form-group">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">工作单位：</label>
                            <div class="col-sm-4">
                                <input class="form-control" type="text" v-model="biandong.beizhu3" placeholder="请输入具体工作单位">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">转至特贴主管单位：</label>
                            <div class="col-sm-4">
                                <select name="zhuanzhidanwei" class="form-control" type="text" v-model="biandong.zhuanzhidanwei" id="zhuanzhidanwei">
                                    <option v-for="deptitem in zhuanzhidanweilist" :value="deptitem.id" v-html="deptitem.jigoumingcheng"></option>
                                </select>
                            </div>
                            <div class="col-sm-3">
                                <input class="form-control" type="text" v-model="zhuanzhidanweiname" placeholder="请输入转至单位名称">
                            </div>
                            <div class="col-sm-1">
                                <button type="button" class="btn btn-primary" @click="bindZhuanzhidanweiList">搜索</button>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-3"></div>
                            <div class="col-sm-9">
                                <label class="control-label">若系统内无需要转入的单位，请手动填写转入单位与转入单位上级主管单位。</label>
                            </div>
                        </div>

                        <div class="form-group" v-if="biandong.zhuanzhidanwei==null">
                            <label class="col-sm-3 control-label">转入单位名称：</label>
                            <div class="col-sm-4">
                                <input class="form-control" type="text" v-model="biandong.beizhu4" placeholder="请输入转入单位名称">
                            </div>
                        </div>

                        <div class="form-group" v-if="biandong.zhuanzhidanwei==null">
                            <label class="col-sm-3 control-label">转入单位上级主管单位：</label>
                            <div class="col-sm-4">
                                <input class="form-control" type="text" v-model="biandong.beizhu5" placeholder="请输入转入单位上级主管单位">
                            </div>
                        </div>

                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">说明：</label>
                        <div class="col-sm-8">
                            <textarea style="height:200px" name="shuoming" class="form-control" v-model="biandong.shuoming"></textarea>
                        </div>
                    </div>
                    <div class="form-group" v-if="isqushishow">
                        <label class="col-sm-11 control-label" style="color: #ff0000">以上信息是否属实，如属实请确认提交，如不属实请重新选择变动类型</label>
                    </div>
                </form>

            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" @click="add" v-if="editflag==1">保存</button>
                <button type="button" class="btn btn-primary" @click="modify" v-if="editflag==2">保存</button>
            </div>
        </div>
    </div>
</div>
</div>